package cn.ultrarisk.scadmin.manager.biz.user.entity;

import cn.ultrarisk.mybatis.extension.annotation.Table;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;


/**
 * 角色实体类
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/4/14
 * @since V1.0
 */
@Table(table = "role", idColumn = Role.ID, autoIncrement = true)
public class Role implements Serializable {
    private static final long serialVersionUID = -4422068699671907767L;

    public final static String ID = "id";
    public final static String NAME = "name";

    public static final Map<String, String> COLUMN_PROPERTY_MAP = new LinkedHashMap<String, String>();

    static {
        COLUMN_PROPERTY_MAP.put(ID, "id");
        COLUMN_PROPERTY_MAP.put(NAME, "name");
    }

    /**
     * id
     */
    private Integer id;
    /**
     * 角色名称
     */
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}